'Declaration
<ExtensionAttribute()> Public Overloads Shared Sub MakeRelative( _ ByVal popup As Popup, _ ByVal relativeElement As FrameworkElement, _ ByVal getLocations As Func(Of List(Of AnchorMatching)) _ )
'Usage
Dim popup As Popup Dim relativeElement As FrameworkElement Dim getLocations As Func(Of List(Of AnchorMatching)) Extensions.MakeRelative(popup, relativeElement, getLocations)
[Extension()] public static void MakeRelative( Popup popup, FrameworkElement relativeElement, Func<List<AnchorMatching>> getLocations )
[Extension()] public: static void MakeRelative( Popup^ popup, FrameworkElement^ relativeElement, Func<List<AnchorMatching>^>^ getLocations )
Parameters
- popup
- System.Windows.Controls.Primitives.Popup to handle.
- relativeElement
- Element used to locate the popup.
- getLocations
- Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.